/*
 * author      : 吴中勤 
 * date        : 2018/8/19
 * description : TODO
 */

package com.deepexi.adapter.sdk.moby;

public enum MobyApiType {

    VehicleInfo("VehicleInfo", "VehicleInfo"),
    InteriorPart("InteriorPart", "InteriorPart"),
    ExteriorPart("ExteriorPart", "ExteriorPart"),
    Material("Material", "Material"),
    VehicleModelLine("VehicleModelLine", "VehicleModelLine"),
    VehicleModel("VehicleModel", "VehicleModel");

    public final String name;
    public final String desc;

    MobyApiType(String name, String desc) {
        this.name = name;
        this.desc = desc;
    }

    public static MobyApiType fromName(String name) {
        for (MobyApiType type : MobyApiType.values()) {
            if (type.name.equals(name)) return type;
        }
        return null;
    }
}
